function customTab(that,app, selected){
  if (typeof that.getTabBar === 'function' &&
    that.getTabBar()) {
    that.getTabBar().setData({
      selected: selected,
      bottom: 0
    })
    if (app.notifyCount == null) {
      setTimeout(() => { customTab(that, app, selected);},200)
    } else {
      that.getTabBar().setData({
        count: app.notifyCount,
      })
      that.setData({
        count: app.notifyCount,
      })
    }
  }
}

export default customTab